{extend name="common/layout" /}
{block name="head"}
<link rel="stylesheet" href="__STATIC__/common/css/jquery-ui.css" media="all">
<script type="text/javascript" src="__STATIC__/common/js/jquery-ui.js"></script>
<style type="text/css">
    .alip-cloud,.cloud-aws,.cloud-alip,.aws-cloud{display: none;}
    .benduan{}
    .broadbandinput{right: -75px;position: absolute;}
    .broadbandinput .broadband-label{position: relative;display: inline-block;height: 30px;top:-3px;}
    .layui-form .layui-form-label{width: 130px;}
</style>
{/block}
{block name="main"}
<div class="admin-main fadeInUp animated" ng-app="hd" ng-controller="ctrl">
    <div class="padding30 page-box-title-tic" >

        <h3 class="page-box-title">{:lang('Calculator')}</h3>
        <blockquote class="layui-elem-quote layui-text">
          <h4 class="layui-note-title">{:lang('Relevant instructions:')}</h4>
          <p class="layui-note-content">{:lang('Please fill in the following information form, number (*) are required.')}</p>
          
        </blockquote>
    </div>
    <div class="layui-form-box price-boacx" style="padding: 0 30px;margin-top:60px;">
    <form class="layui-form nerwork-like" id="_form">
        <div class="layui-row Network-price-box">
            <div class="layui-col-xs6" style="padding-right: 20px;">
              <!--本端数据 start-->
                <div class="benduan">
                    <div class="layui-form-item">
                        <label class="layui-form-label">* {:lang('Local Access')}</label>
                        <div class="layui-input-block">
                          <select name="type" lay-filter="type" lay-verify="required">
                            <option value="">{:lang('Please Select Type')}</option>
                            <?php foreach($types as $index=>$type):?>
                                <option value="{$index}" >{$type}</option>
                            <?php endforeach;?>
                          </select>
                        </div>
                    </div>
                    <!--公司机构&数据中心(私有云)类型表单-->
                    <div class="type type-company">
                        <div class="layui-form-item ">
                            <label class="layui-form-label">* {:lang('Region')}</label>
                            <div class="layui-input-block layui-inlines">
                              
                                  <div class="mlayui-inline ">
                                    <select name="country_id" class="type-model-1" lay-filter="countryId" data-value="0" data-aid="#city_id">
                                        <option value="">{:lang('Please Choose')}</option>
                                        <?php foreach($popArr as $pop):?>
                                        <option value="{$pop['id']}" data-icon="{$pop['icon']}">{$pop['name']}</option>
                                        <?php endforeach;?>
                                      </select>
                                </div>
                                <div class="mlayui-inline">
                                    <select name="city_id" class="type-model-1" data-value="0" data-pid="0" data-aid="#pop_id" id="city_id" lay-filter="cityId">
                                    </select>
                                </div>
                            </div>
                            
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">* {:lang('POP')}</label>
                            <div class="layui-input-block">
                                <select name="pop_id" class="type-model-1" id="pop_id" lay-filter="popId">
                                </select>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label"> {:lang('End Access Address')}</label>
                            <div class="layui-input-block">
                                <input type="text" name="access_addr" placeholder="{:lang('Fill in the detailed address of the organization / data center')}" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <!--end-->

                    <!--公有云-->
                    <div class="type type-publc">
                        <div class="layui-form-item">
                            <label class="layui-form-label">* {:lang('Gong Youyun')}</label>
                            <div class="layui-input-block layui-inlines">
                                <div class="mlayui-inline">
                              <select name="local_cloud_id" class="type-model-2" data-aid="#localcloudaddrid" lay-filter="localcloudid">
                                <option value="">{:lang('Please Choose')}</option>
                                <?php foreach($clouds as $cloud):?>
                                <option value="{$cloud['id']}" data-icon="{$cloud['icon']}">{$cloud['name']}</option>
                                <?php endforeach;?>
                              </select>
                          </div>
                              <div class="mlayui-inline">

                                  <select name="cloud_country" class="type-model-2"  id="localcloudaddrid" lay-filter="localcloudaddrid" data-aid="#cloud_city" >
                                    <option value="">{:lang('Please Choose')}</option>
                                  </select>
                            </div>
                            </div>
                            
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">* {:lang('Local Access City')}</label>
                            <div class="layui-input-block layui-inlines">
                               <div class="mlayui-inline">
                                  <select name="cloud_city" class="type-model-2"  id="cloud_city" data-aid="#cloud_conter" lay-filter="cloudCity">
                                    <option value="">{:lang('Please Choose')}</option>
                                    
                                  </select>
                               </div>
                               <div class="mlayui-inline">
                                      <select name="cloud_conter" class="type-model-2" id="cloud_conter" >
                                        <option value="">{:lang('Please Choose')}</option>
                                      </select>
                                </div>
                            </div>
                            
                        </div>
                       
                       
                         
                    </div>
                    <!--AWS end-->
                </div>
                <!--对端接入start-->
                <div class="layui-form-item">
                    <label class="layui-form-label">* {:lang('End-to-end access')}</label>
                    <div class="layui-input-block">
                      <select name="endtype" lay-filter="endtype" lay-verify="required">
                        <option value="">{:lang('Please Select Type')}</option>
                        <?php foreach($types as $index=>$type):?>
                            <option value="{$index}">{$type}</option>
                        <?php endforeach;?>
                      </select>
                    </div>
                </div>
                <!--对端公有云的form-->
                <div class="etype etype-publc" style="display: none;">
                    <div class="layui-form-item">
                        <label class="layui-form-label">* {:lang('Opposite end Gong Youyun')}</label>
                        <div class="layui-input-block layui-inlines">
                            <div class="mlayui-inline">
                              <select name="endcloudid" class="endtype-model-2"  data-aid="#endcloudaddrid" lay-filter="endcloudid">
                                <option value="">{:lang('Please Choose')}</option>
                                <?php foreach($clouds as $cloud):?>
                                <option value="{$cloud['id']}" data-icon="{$cloud['icon']}">{$cloud['name']}</option>
                                <?php endforeach;?>
                              </select>
                          </div>
                          <div class="mlayui-inline">

                              <select name="endcloudaddrid" class="endtype-model-2" id="endcloudaddrid" lay-filter="endCloudaddrid" data-aid="#ecloud_city">
                                <option value="">{:lang('Please Choose')}</option>
                              </select>
                        </div>
                        </div>
                        
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">* {:lang('Peer Access City')}</label>
                        <div class="layui-input-block layui-inlines">
                            <div class="mlayui-inline">
                              <select name="ecloud_city" class="endtype-model-2" id="ecloud_city" data-aid="#ecloud_conter" lay-filter="ecloudCity">
                                <option value="">{:lang('Please Choose')}</option>
                                
                              </select>
                          </div>
                          <div class="mlayui-inline">

                              <select name="ecloud_conter" class="endtype-model-2" id="ecloud_conter">
                                <option value="">{:lang('Please Choose')}</option>
                              </select>
                            </div>
                        </div>
                        
                    </div>   
                    
                </div>
                <!--公司-->
                <!--公司机构&数据中心(私有云)类型表单-->
                <div class="etype etype-company" style="display: none;">
                    <div class="layui-form-item">
                        <label class="layui-form-label">* {:lang('Region')}</label>
                        <div class="layui-input-block layui-inlines">
                            <div class="mlayui-inline">
                              <select name="ecountry_id" class="endtype-model-1" lay-filter="ecountryId" data-aid="#ecity_id">
                                <option value="">{:lang('Please Choose')}</option>
                                <?php foreach($popArr as $pop):?>
                                <option value="{$pop['id']}" data-icon="{$pop['icon']}">{$pop['name']}</option>
                                <?php endforeach;?>
                              </select>
                          </div>
                          <div class="mlayui-inline">
                                <select name="ecity_id" class="" data-pid="0" data-aid="#epop_id" id="ecity_id" lay-filter="ecityId">
                                </select>
                            </div>
                        </div>
                        

                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">* {:lang('POP')}</label>
                        <div class="layui-input-block">
                          <select name="epop_id" id="epop_id" class="endtype-model-1" lay-filter="epopId">
                            <option value="">{:lang('Please Choose')}</option>
                            
                          </select>
                        </div>
                        
                    </div>
                    <div class="layui-form-item">
                            <label class="layui-form-label"> {:lang('End to end access address')}</label>
                            <div class="layui-input-block">
                                <input type="text" name="eaccess_addr" placeholder="{:lang('Fill in the detailed address of the organization / data center')}" class="layui-input">
                            </div>
                    </div>
                </div>
            </div>
            <!--右边-->
            <div class="layui-col-xs6" style="padding-left:20px">
                <div class="layui-form-item">
                    <label class="layui-form-label">* {:lang('Purchase Time')}</label>
                    <div class="layui-input-block">
                        <select name="daylength"  lay-filter="_daylength" lay-verify="required" id="daylength">
                           <option value="">{:lang('Please Choose')}</option>
                           <?php foreach($daLength as $dindex=>$d):?>
                            <option value="{$dindex}">{$d}</option>
                            <?php endforeach;?>
                        </select>
                    </div>
                    
                  </div>  
              <!--费用-->
                <div class="layui-form-item" style="margin-top:15px;">
                    <label class="layui-form-label" style="background-color: transparent;width: 120px;">* {:lang('Bandwidth')}</label>
                    <div class="layui-input-block layui-form-b" style="position: relative;">
                        
                        <div id="mslider">
                            <span class="broadbandinput" >
                                <label class="broadband-label" >
                                    <input type="text" value="1" id="_broadband" name="broadband" class="broadband">
                                    <span class="autobtn"></span>
                                    <span class="_add"></span>
                                    <span class="_min"></span>
                                </label> 
                            </span> 
                            <div id="custom-handle" class="ui-slider-handle">
                                <span></span>
                            </div>
                         </div>
                        
    <!--                         <input type="text" name="broadband" lay-verify="required" placeholder="{:lang('请输入带宽(Mbps)')}" class="layui-input">
    -->             </div>
                </div>
               
                  
                <!--end-->
            </div>
        </div>
        
        
    
       <div style="margin-top: 25px;text-align: center;">
            <button type="button" class="layui-btn layui-btn-normal" lay-submit="" lay-filter="submit">{:lang('Confirm')}</button>&nbsp;&nbsp;&nbsp;&nbsp;
           <?php if($isCustomer == 1):?>
           <button type="button" class="layui-btn layui-btn-disabled" id="_paybtn" lay-filter="paybtn">{:lang('Buy')}</button>
           <?php endif;?>
           <span id="price-money"></span>
       </div>
    </form>
</div>
</div>
{/block}
{block name="footer"}

<script>
    //配置费用：<span class="price-money">￥ 17104.80</span>
    var _item=1;
    var myDmoe = null;
    layui.use(['form', 'layer','laydate'], function () {
        var form = layui.form, layer = layui.layer,$= layui.jquery,laydate = layui.laydate;
        
        form.on('submit(submit)', function (data) {
            //loading = layer.load(1,{shade:[0.1,'#fff']});
            // 提交到方法 默认为本身
            //data.field.id = $scope.field.id;
            /*计算价钱*/
            _alculator({
                        url:"{:U('query')}",
                        data:$("#_form").serializeArray(),
                        notice:"{:lang('The cost is being calculated....')}"
                    },function(res){
                        if(res.code == -1){
                            $("#_paybtn").addClass("layui-btn-disabled")
                            
                        }else{
                            $("#_paybtn").removeClass("layui-btn-disabled")
                            $("#price-money").append("<input type='hidden' value='"+res.total+"' name='total'/>")
                            $("#price-money").append("<input type='hidden' value='"+res.currency+"' name='currency'/>")
                        }
                    })
        });
        /*去购买页面*/
        $("#_paybtn").on('click', function (data) {
            if($(this).hasClass("layui-btn-disabled")){
                return false;
            }
            loading = layer.load(1,{shade:[0.1,'#fff']});
            _post("{:U('cart/add')}", $("#_form").serialize(), function (res) {
                layer.close(loading);
                if (res.code > 0) {
                    layer.open({
                        type: 2 //此处以iframe举例
                        ,title: "{:lang('Network Open')}"
                        ,area: ['950px', '600px']
                        ,shade: 0.8
                        ,content: res.url
                        ,zIndex: layer.zIndex //重点1
                    })
                    //location.href = res.url;
                }else{
                    layer.msg(res.msg, {time: 1800, icon: 2});
                }
            })
        })
        /*绑定本端接入类型（公司机构、数据中心（私有云）、公有云）*/
        form.on("select(type)",function(obj){

            if(obj.value == 3){  //公有云
               $(".type").hide(); 
               $(".type-publc").show(); 
               $(".type-model-1").removeAttr("lay-verify")
               $(".type-model-2").attr("lay-verify","required")
            }else if(obj.value > 0){
                $(".type").hide();
                $(".type-company").show(); 
                $(".type-model-1").attr("lay-verify","required")
                $(".type-model-2").removeAttr("lay-verify")
            }else{
                $(".type").hide(); 
            }
            $("#price-money").html('');
            form.render();
        })
        form.on("select(endtype)",function(obj){

            if(obj.value == 3){  //公有云
               $(".etype").hide(); 
               $(".etype-publc").show(); 
               $(".endtype-model-1").removeAttr("lay-verify")
               $(".endtype-model-2").attr("lay-verify","required")
            }else if(obj.value > 0){
                $(".etype").hide();
                $(".etype-company").show(); 
                $(".endtype-model-2").removeAttr("lay-verify")
                $(".endtype-model-1").attr("lay-verify","required")
            }else{
                $(".etype").hide(); endtype
            }
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
        })
        
        
        /*本端公有云（云列表）*/
        form.on("select(localcloudid)",function(obj){
            var doem = obj.elem.dataset.aid;
            $("#localcloudaddrid,#cloud_city,#cloud_conter").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            if(obj.value > 0){
                if(obj.value == 3737){  //aws云
                    $(".cloud-alip").hide();
                    $(".aws-cloud").show();
                }else{
                    $(".cloud-alip").show();
                    $(".aws-cloud").hide();
                }
                _post("{:U('cloud/getClouList')}",{pid:obj.value,cloud_id:obj.value},function(res){
                    $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
                    if(res.code == 1){
                        $.each(res.items,function(i,item){
                            $(doem).append("<option value='"+item.id+"' data-icon='"+item.icon+"' >"+item.name+"</option")
                        })
                    }
                    form.render();
                },'json')
            }else{
                $(".aws-cloud").hide();
                $(".cloud-alip").hide();
            }
            $("#cloud-huawei1").hide();
            
        })
        /*地区*/
        form.on("select(localcloudaddrid)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value =  obj.elem.dataset.value;
            $("#cloud_city,#cloud_conter").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            _post("{:U('cloud/getCloudCity')}",{country_id:obj.value,cloud_id:$("select[name='local_cloud_id']").val()},function(res){
                $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value  == item.id){
                            $(doem).append("<option value='"+item.id+"' selected >"+item.name+"</option")
                        }else{
                             $(doem).append("<option value='"+item.id+"'>"+item.name+"</option")
                        }
                    })
                }
                form.render();
            },'json')
        })
        /*本端城市*/
        form.on("select(cloudCity)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value =  obj.elem.dataset.value;
            $("#cloud_conter").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            _post("{:U('cloud/getCloudItems')}",{city_id:obj.value,cloud_id:$("select[name='local_cloud_id']").val(),country_id:$("#localcloudaddrid").val()},function(res){
                $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value  == item.id){
                            $(doem).append("<option value='"+item.id+"' selected >"+item.name+"</option")
                        }else{
                             $(doem).append("<option value='"+item.id+"'>"+item.name+"</option")
                        }
                       
                    })
                }
                form.render();
            },'json')
        })
        
        /*对端公有云（云列表）*/
        form.on("select(endcloudid)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value =  obj.elem.dataset.value;
            $("#endCloudaddrid,#ecloud_city,#ecloud_conter").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            if(obj.value > 0){
                if(obj.value == 3737){  //aws云
                    $(".alip-cloud").hide();
                    $(".cloud-aws").show();
                }else{
                    $(".alip-cloud").show();
                    $(".cloud-aws").hide();
                }
                _post("{:U('cloud/getClouList')}",{pid:obj.value,cloud_id:obj.value},function(res){
                    $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
                    if(res.code == 1){
                        $.each(res.items,function(i,item){
                            if(value == item.id){
                                $(doem).append("<option value='"+item.id+"' data-icon='"+item.icon+"' selected >"+item.name+"</option")
                            }else{
                                $(doem).append("<option value='"+item.id+"' data-icon='"+item.icon+"' >"+item.name+"</option")
                            }
                            
                        })
                    }
                    form.render();
                },'json')
            }else{
                $(".alip-cloud").hide();
                $(".cloud-aws").hide();
            }
            $("#cloud-huawei2").hide();
            
        })
        /*地区*/
        form.on("select(endCloudaddrid)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value =  obj.elem.dataset.value;
            $("#ecloud_city,#ecloud_conter").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            _post("{:U('cloud/getCloudCity')}",{country_id:obj.value,cloud_id:$("select[name='endcloudid']").val()},function(res){
                $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value == item.id){
                            $(doem).append("<option value='"+item.id+"' selected >"+item.name+"</option")
                        }else{
                            $(doem).append("<option value='"+item.id+"'>"+item.name+"</option")
                        }
                    })
                }
                form.render();
            },'json')
        })
        /*对端城市*/
        form.on("select(ecloudCity)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value =  obj.elem.dataset.value;
            $("#ecloud_conter").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            _post("{:U('cloud/getCloudItems')}",{city_id:obj.value,cloud_id:$("select[name='endcloudid']").val(),country_id:$("#endcloudaddrid").val()},function(res){
                $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value == item.id){
                            $(doem).append("<option value='"+item.id+"' selected >"+item.name+"</option")
                        }else{
                            $(doem).append("<option value='"+item.id+"'>"+item.name+"</option")
                        }
                    })
                }
                form.render();
            },'json')
        })
        /*本端pop点切换*/
        form.on("select(countryId)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value = obj.elem.dataset.value;
            $(doem).attr('data-pid',obj.value);
            $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
            $("#pop_id").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            loading =layer.load(1, {shade: [0.1,'#fff']});
            _post("{:U('pop/popList')}",{pid:obj.value},function(res){
                layer.close(loading);
                //$("input[name='access_addr']").val('')
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value == item.id){
                            $(doem).append("<option value='"+item.id+"' selected >"+item.name+"</option")
                        }else{
                            $(doem).append("<option value='"+item.id+"'>"+item.name+"</option")
                        }
                        
                    })
                }
                form.render();
            },'json')
        })
        /*pop点切换*/
        form.on("select(cityId)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value = obj.elem.dataset.value;
            $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            
            _post("{:U('pop/popItems')}",{city_id:obj.value,area_id:obj.elem.dataset.pid},function(res){
                layer.close(loading);
                //$("input[name='access_addr']").val('');
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value == item.id){
                            $(doem).append("<option value='"+item.id+"' selected data-address='"+item.address+"'>"+item.name+"</option")
                        }else{
                            $(doem).append("<option value='"+item.id+"' data-address='"+item.address+"'>"+item.name+"</option")
                        }
                        
                    })
                    
                }
                form.render();
            },'json')
        })
        form.on("select(popId)",function(obj){
            var _addres = $("#pop_id").find("option[value='"+obj.value+"']").data('address');
            $("input[name='access_addr']").val(_addres)
        })
        /*对端pop点接入*/
        form.on("select(ecountryId)",function(obj){
            var doem = obj.elem.dataset.aid;
            $(doem).attr('data-pid',obj.value);
            var value = obj.elem.dataset.value;
            $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
            $("#epop_id").html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            _post("{:U('pop/popList')}",{pid:obj.value},function(res){
                //$("input[name='eaccess_addr']").val('')
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value == item.id){
                            $(doem).append("<option value='"+item.id+"' selected >"+item.name+"</option")
                        }else{
                             $(doem).append("<option value='"+item.id+"'>"+item.name+"</option")
                        }
                        
                    })
                }
                form.render();
            },'json')
        })
        /*pop点切换*/
        form.on("select(ecityId)",function(obj){
            var doem = obj.elem.dataset.aid;
            var value = obj.elem.dataset.value;
            $(doem).html("<option value=''>{:lang('Please Choose')}</option>");
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            form.render();
            _post("{:U('pop/popItems')}",{city_id:obj.value,area_id:obj.elem.dataset.pid},function(res){
                //$("input[name='eaccess_addr']").val('');
                if(res.code == 1){
                    $.each(res.items,function(i,item){
                        if(value == item.id){
                            $(doem).append("<option value='"+item.id+"' data-address='"+item.address+"' selected >"+item.name+"</option")
                        }else{
                            $(doem).append("<option value='"+item.id+"' data-address='"+item.address+"'>"+item.name+"</option")
                        }
                        
                    })
                    
                }
                form.render();
            },'json')
        })
        form.on("select(epopId)",function(obj){
            var _addres = $("#epop_id").find("option[value='"+obj.value+"']").data('address');
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
            $("input[name='eaccess_addr']").val(_addres)
        })
        form.on("select(_daylength)",function(obj){
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
        })
        //日期
        laydate.render({
            elem: '#_date',
            lang: 'en'
        });
        /*計劃開通時間*/
        laydate.render({
            elem: '#plan_time',
            lang: 'en',
            min:+1
        });
        setSlideMb(function(){
            $("#price-money").html('');
            $("#_paybtn").addClass("layui-btn-disabled")
        });
        /*编辑数据*/

    });
    
</script>
{/block}